int Factorial(const int N)
{
	if (N < 0)
	{
		return 0;
	}
	else
	{
		int factorial = 1;
		for (int i = 1; i <= N; i++)
		{
			factorial *= i;
		}
		return factorial;
	}
}